// test_property_editor.cpp
#include <wx/wx.h>
#include "simple_property_editor.h"

class TestApp : public wxApp
{
public:
    virtual bool OnInit();
};

class TestFrame : public wxFrame
{
public:
    TestFrame(const wxString& title);
    
private:
    SimplePropertyEditor* m_editor;
};

bool TestApp::OnInit()
{
    TestFrame* frame = new TestFrame(_T("属性编辑器原型测试"));
    frame->Show(true);
    return true;
}

TestFrame::TestFrame(const wxString& title)
    : wxFrame(nullptr, wxID_ANY, title, wxDefaultPosition, wxSize(800, 600))
{
    m_editor = new SimplePropertyEditor(this);
    
    wxSizer* sizer = new wxBoxSizer(wxVERTICAL);
    sizer->Add(m_editor, 1, wxEXPAND);
    SetSizer(sizer);
}

wxIMPLEMENT_APP(TestApp);